<?php
namespace app\admin\validate;

use think\Validate;

class CpGame extends Validate
{
    protected $rule = [
        'name'            => 'require|unique:cp_channel',
    ];

    protected $message = [
        'name.require'            => '请输入名称',
        'name.unique'             => '名称已存在',
    ];
}